home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / ARCHIVES.SWG / 0012_SQZ.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-03  |  4KB  |  87 lines

  1. --------A-SQZ-------------------------------
  2.  
  3. The  SQZ files are yet another  archive format. The SQZ archives consist
  4. of  one archive header and several  file headers. The archive header has
  5. the following format :
  6.  
  7. OFFSET              Count TYPE   Description
  8. 0000h                   5 char   ID='HLSQZ'
  9. 0005h                   1 char   Version in ASCII
  10.                                  ID='1'
  11. 0006h                   1 byte   OS byte,
  12.                                   0 - PC-DOS / MS-DOS
  13.                                   1 - OS/2
  14.                                   2 - MVS
  15.                                   3 - HPFS (OS/2)
  16.                                   4 - Amiga
  17.                                   5 - Macintosh
  18.                                   6 - Unix
  19. 0007h                   1 byte   Misc. flags, bitmapped :
  20.                                   0 - Intel byte order / Motorola byte order
  21.                                   1 - Filetime in ?? / File time in DOS format
  22.                                   2 - No security envelope / security envelope
  23.                                 3-7 - reserved
  24.  
  25. After  the  header  and  each  block,  there  is  one  byte denoting the
  26. type/size of the next block :
  27.  
  28. OFFSET              Count TYPE   Description
  29. 0000h                   1 byte   Block/size specifier :
  30.                                  0 - End of archive
  31.                                  1 - Comment
  32.                                  2 - Password
  33.                                  3 - Security envelope
  34.                               4-18 - reserved
  35.                                >18 - normal file header,
  36.                                      byte value is size of header
  37.  
  38. The normal file header then has the following format :
  39.  
  40. OFFSET              Count TYPE   Description
  41. 0000h                   1 byte   Checksum of header
  42. 0001h                   1 byte   Flags, bitmapped :
  43.                                  0-3 : Compression method :
  44.                                          0 -
  45.                                          1 -
  46.                                          2 -
  47.                                          3 -
  48.                                          4 -
  49.                                    4 - Security envelope should follow
  50.                                  5-7 - reserved
  51. 0002h                   1 dword  Compressed size of file
  52. 0006h                   1 dword  Original file size
  53. 000Ah                   1 dword  Date and time of file (see table 0009)
  54. 000Eh                   1 byte   File attributes
  55. 000Fh                   1 dword  CRC-32 of file
  56. 0013h                   ? char   Filename (see above for length)
  57.  
  58. The comment block :
  59. OFFSET              Count TYPE   Description
  60.  
  61. 0000h                   1 word   Size of uncompressed comment
  62. 0002h                   1 word   Size of compressed comment data
  63.                                  ="LEN"
  64. 0004h                   1 byte   Flags, bitmapped, see above
  65. 0005h                   1 dword  CRC-32
  66. 0009h               "LEN" byte   Compressed comment data
  67.  
  68. The password block :
  69.  
  70. OFFSET              Count TYPE   Description
  71. 0000h                   1 word   Size of password block (=4)
  72. 0004h                   1 dword  CRC-32 of password
  73.  
  74. Other blocks :
  75.  
  76. OFFSET              Count TYPE   Description
  77. 0000h                   1 word   Size of this block
  78.                                  ="LEN"
  79. 0002h               "LEN" byte   Block data
  80.  
  81. EXTENSION:SQZ
  82. OCCURENCES:PC
  83. PROGRAMS:??
  84. REFERENCE:
  85. SEE ALSO:
  86.  
  87.